package com.ttscm.srds.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @version:
 * @author:
 * @className:
 * @packageName:
 * @description: 机器人配置
 * @date: 2022/07/20
 */
@Component
@ConfigurationProperties(prefix = "robot")
@PropertySource(value = "classpath:configs/robot.properties")
public final class RobotParam {
    private String host;
    private String name;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "RobotConfig:{" +
                "host='" + host + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}